﻿

using He.Common;
namespace He.DAL
{
    public class webset
    {
        private static object lockHelper = new object();

        /// <summary>
        ///  读取配置文件
        /// </summary>
        /// <param name="configFilePath"></param>
        /// <returns></returns>
        public Model.webset loadConfig(string configFilePath)
        {
            return (He.Model.webset)XmlHelper.Load(typeof(He.Model.webset), configFilePath);
        }

        public Model.webset saveConifg(Model.webset mode, string configFilePath)
        {
            lock (lockHelper)
            {
                XmlHelper.Save(mode, configFilePath);
                //He.Dal.Providers.webSetProvider.SetInstance(mode);
            }
            return mode;
        }
    }
}
